﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test2.aspx.cs" Inherits="SellerProject.test2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery.js" type="text/javascript"></script>
<link href="Layout/i_sel.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" type="text/javascript">
//        function ifmloaded() {
//            debugger;

//        };

        function test1() {
            var ifmurl = $("#ifmurl").val();
            alert(ifmurl.toString());
            $("#ifm1").attr("src","http://" + ifmurl);
            ifmloading();
        };

        function ifmloading() {
            alert($("#overlay").text());
            $("#overlay").show();
        };

        $("#ifm1").load(function () {
            alert("ifm now show");
            $("#ifm1").show();
            $("overlay").hide();
        });             
    </script>
  
</head>
<body>
    <form id="form1" runat="server">

<%--        <div>
            <ul id="tree" class="tree">
            </ul>
        </div>--%>

<div style="width:800px; height:300px; border:1px solid #C0C0C0; margin:0 auto;">
    <div id="control" style="width:100%;height:30px;">
        <span id="btn1" onclick="test1()">button</span><input id="ifmurl" type="text"/>   
     </div>
    <span id="overlay"><img src="Css/screenPic/onloading_2.gif" alt="" /></span>
    <iframe style="display:none;" id="ifm1" name="ifm1" frameborder="0" marginheight="0" marginwidth="0" width="800px" height="300px" src="http://www.baidu.com">爆炸了</iframe>
 
</div>
</form>
</body>
</html>
